#ifndef MAINWINDOW_H
#define MAINWINDOW_H


#include <QtGui/QMainWindow>
#include <QLineEdit>
#include <QTextEdit>
#include <QPushButton>
#include <QComboBox>
#include <QFile>
#include <QDir>
#include <QFileDialog>
#include <QFileInfo>
#include <QObject>
#include <QSqlDriver>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QTableview>
#include <QSqlTableModel>
#include <QSqlRecord>
#include <QSqlQueryModel>
#include <QSqlRelationalTableModel>
#include <QMessageBox>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();


void connected();
void tablica();


private slots:


    void on_pushButton_7_clicked();
    void on_pushButton_2_clicked();
    void on_pushButton_3_clicked();
    void on_pushButton_clicked();
    void on_pushButton_8_clicked();
    void on_pushButton_9_clicked();
   // void on_pushButton_10_clicked();
    void on_pushButton_11_clicked();
    void on_pushButton_5_clicked();

    void on_pushButton_4_clicked();

private:
    QComboBox comboBox;
    QString dir;
    QString qs;
    QSqlRecord rec;
    QTableView view;
    QByteArray line;
    QSqlDatabase db;
    QSqlQueryModel *model;
    QString *mesto_stancii;
    QMessageBox msgBox;
    int result;
      QFile* File;
      QString gruppiRTF;
      QStringList listgruppRTF;
      QString gruppiFSU;
      QStringList listgruppFSU;
      QString facultets;
      QStringList facultetslist;

    Ui::MainWindow *ui;
};



#endif // MAINWINDOW_H
